package com.kzc.service.impl;

import com.kzc.base.model.Result;
import com.kzc.dao.FeedBackDao;
import com.kzc.entity.FeedBack;
import com.kzc.service.FeedBackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Author：柯尊诚
 * Created by anyleKe on 2016/2/26.
 */
@Service
public class FeedBackServiceImpl implements FeedBackService{

    @Autowired
    FeedBackDao feedBackDao;

    public Result add(FeedBack feedBack) {

        int i = feedBackDao.add(feedBack);
        if (i > 0) {
            return new Result(Result.SUCCESS, "提交成功");
        } else {
            return new Result(Result.ERROR, "提交失败");
        }

    }
}
